<ui:fragment xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core" xmlns:shiro="http://shiro.apache.org/tags"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

	<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();" onerror="statusDialog.hide();">
		<p:dialog modal="true" widgetVar="statusDialog" resizable="false" header="Processando..." draggable="false" closable="false">
			<h:panelGrid width="100%" style="text-align: center;">
				<p:graphicImage name="images/loading.gif" />
			</h:panelGrid>
		</p:dialog>
	</p:ajaxStatus>

</ui:fragment>